package com.tjzx.entity;

/**
 * StQuestionTypeId entity. @author MyEclipse Persistence Tools
 */

public class StQuestionTypeId implements java.io.Serializable {

	// Fields

	private Integer questionTypeid;
	private String questionType;

	// Constructors

	/** default constructor */
	public StQuestionTypeId() {
	}

	/** full constructor */
	public StQuestionTypeId(Integer questionTypeid, String questionType) {
		this.questionTypeid = questionTypeid;
		this.questionType = questionType;
	}

	// Property accessors

	public Integer getQuestionTypeid() {
		return this.questionTypeid;
	}

	public void setQuestionTypeid(Integer questionTypeid) {
		this.questionTypeid = questionTypeid;
	}

	public String getQuestionType() {
		return this.questionType;
	}

	public void setQuestionType(String questionType) {
		this.questionType = questionType;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof StQuestionTypeId))
			return false;
		StQuestionTypeId castOther = (StQuestionTypeId) other;

		return ((this.getQuestionTypeid() == castOther.getQuestionTypeid()) || (this
				.getQuestionTypeid() != null
				&& castOther.getQuestionTypeid() != null && this
				.getQuestionTypeid().equals(castOther.getQuestionTypeid())))
				&& ((this.getQuestionType() == castOther.getQuestionType()) || (this
						.getQuestionType() != null
						&& castOther.getQuestionType() != null && this
						.getQuestionType().equals(castOther.getQuestionType())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getQuestionTypeid() == null ? 0 : this.getQuestionTypeid()
						.hashCode());
		result = 37
				* result
				+ (getQuestionType() == null ? 0 : this.getQuestionType()
						.hashCode());
		return result;
	}

}